<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
%>

 <%String functionNum=request.getParameter("functionNum"); 
   String agreement=request.getParameter("agreement");
 %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>main</title>
<link rel="stylesheet" rev="stylesheet" href="../css/style.css"
	type="text/css" media="all" />

<script src="../js/jquery.min.js" type="text/javascript"></script>
<script type=text/javascript  src="../ueditor/ueditor.config.js"></script>  
<SCRIPT type=text/javascript src="../ueditor/ueditor.all.js"></SCRIPT>
<script language="JavaScript" type="text/javascript">
	
	function check() {
		document.getElementById("aa").style.display = "";
	}

	
	function doblur(){
		if($('#psd').val() == ''){
			$('#msg1').html('密码不能为空');
			$('#msg1').css('color','red');
		}else{
			$('#msg1').html('');
		}
	}
	
	function doblur1(){
		if($('#psd').val() != $('#psd1').val()){
			$('#msg2').html('密码不一致');
			$('#msg2').css('color','red');
		}else{
			$('#msg2').html('密码一致');
			$('#msg2').css('color','green');
		}
	}
	
	function link() {
	 	if(document.getElementById("psd").value == '' || document.getElementById("psd1").value == '' || document.getElementById("psd").value != document.getElementById("psd1").value){
			alert('密码为空或者输入错误，请重新输入')
	 		$("#fom").submit(function(e){
			    e.preventDefault();
			});
		}
	}
	
	
</script>
<style type="text/css">
<!--
.atten {
	font-size: 12px;
	font-weight: normal;
	color: #F00;
}
-->
</style>
</head>

<body class="ContentBody">
	<form action="<%=path %>/otherfun1/editxieyi" method="post" name="fom"
		id="fom">
		<div class="MainDiv">
			<table width="99%" border="0" cellpadding="0" cellspacing="0"
				class="CContent">

				<tr>
					<th class="tablestyle_title">预约协议修改页面</th>
				</tr>
				<tr>
					<td class="CPanel">

                            
							
						<table border="0" cellpadding="0" cellspacing="0"
							style="width: 100%">
							<!-- <tr>
								<td align="left"><input type="submit" name="Submit"
									value="保存" class="button" /> <input
									type="button" name="Submit2" value="返回" class="button"
									onclick="window.history.go(-1);" /></td>
							</tr> -->
							<TR>
								<TD width="100%">
									<fieldset style="height: 100%;">
										<legend>修改预约协议</legend>
										<table border="0" cellpadding="2" cellspacing="1"
											style="width: 100%">
												<tr>
													
													
												</tr>
												<tr>
													<TEXTAREA id=myEditor name="xieyi" value="${appoiment.agreement}"></TEXTAREA>  
												        <SCRIPT type=text/javascript>  
												            var editor = new UE.ui.Editor();  
												            editor.render("myEditor");  
												            //1.2.4以后可以使用一下代码实例化编辑器 
												            //UE.getEditor('myEditor') 
												        </SCRIPT>
													
													
												</tr>
												
												
										</table>
										<br />
									</fieldset>
								</TD>
							</TR>

						</TABLE>


					</td>
				</tr>






				<TR>
					<TD colspan="2" align="center" height="50px"><input
						type="submit" name="Submit" value="提交" class="button" onclick="link()"/> <input
						type="button" name="Submit2" value="返回" class="button"
						onclick="window.history.go(-1);" /></TD>
				</TR>
			</TABLE>


			




			

		</div>
	</form>
</body>
</html>

